package com.myzj.sportplay.dao;

import com.myzj.sportplay.bean.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserDao {

    public User getUserByMessage(@Param("username")String username,@Param("password") String password);
    public List<User> getAllUser(@Param("username")String username, @Param("pageStart") int pageStart, @Param("pageSize") int pageSize);
    public int getUserCounts(@Param("username")String username);
    public int updateState(@Param("id")String id,@Param("state")Boolean state);
    public int addUser(User user);
    public int deleteUser(@Param("id")String id);
    public User getUpdateUser(@Param("id")String id);
    public int editUser(User user);

    int activeUser(String activeCode);
}
